﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;

namespace QLTVNEW
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool exist = false;
            Mutex mutex = new Mutex(true, "Quản Lý Thư Viện", out exist);
            if (exist)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new frmDangNhap());
            } 
            else
            {
                SingleInstance.SwitchToCurrentInstance();
            }
            
        }
    }
}
